[OSM-dev] <ask> How to Build API on my own map ?
Shaun McDonald
shaun at shaunmcdonald.me.uk
Wed Jan 4 08:38:41 GMT 2012
Those instructions are currently out of date since the upgrade to Rails 3.
gem install bundler
bundle install
should help you there.
Shaun
On 4 Jan 2012, at 03:23, Anwar Azulfa wrote:
> i have following reference from http://wiki.openstreetmap.org/wiki/The_Rails_Port
>
> When i execute :
>
> rake gems:install
>
> i have following error:
>
> $ rake gems:install --trace
> rake aborted!
> no such file to load -- bundler/setup
> /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
> /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
> /home/frans/Map/src/rails/config/boot.rb:6
> /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
> /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
> /home/frans/Map/src/rails/config/application.rb:1
> /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
> /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
> /home/frans/Map/src/rails/Rakefile:4
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `load_rakefile'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `run'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/bin/rake:33
> /usr/local/bin/rake:19:in `load'
> /usr/local/bin/rake:19
>
>
> What should i do to solve this ?
>
> Thanks
>
> 2012/1/3 Philipp Borgers <borgers at mi.fu-berlin.de>
> First you should think about what you want. There is an API, and XAPI
> and there is the overpass API that features its own API.
>
> For the XAPI setting up the database is as simple as setting up a
> database for rendering. Time for import depends on the data you give as
> input. The complexity for setting up the differen XAPI implementations
> differs. We tried to make the setup of the xappy.js implementation as
> easy as possible but the implementation isn't complete (missing some
> request types).
>
> Setting up overpass api and database is relative easy compared to xapi
> setup but the import tends to be longer.
>
> Hope this helps somehow.
>
> Regards
> Philipp
>
> On Mon, 2012-01-02 at 17:56 +0700, Anwar Azulfa wrote:
> > which one better between XAPI and overpass API ?and which on simpler?
> >
> >
> > 2012/1/2 Anwar Azulfa <anwar at troyans.net>
> > Thanks for Reply Tom,
> >
> > i have already built Tile Server on my server.
> > Now I want to build API on it
> >
> >
> >
> >
> > 2012/1/2 Tom Hughes <tom at compton.nu>
> > On 02/01/12 09:39, Anwar Azulfa wrote:
> >
> > I want to build API on my own map (tile
> > server).xe
> >
> >
> > Well first you need to make up your mind if you want
> > an API or a tile server as they are two different
> > things...
> >
> >
> > should i do use this reference ? :
> > http://wiki.openstreetmap.org/wiki/Rails_port
> >
> >
> > If you want an API then yes, if you want a tile server
> > then no.
> >
> > Tom
> >
> > --
> > Tom Hughes (tom at compton.nu)
> > http://compton.nu/
> >
> >
> >
> >
> > --
> > Regards,
> > M.Iftakhul Anwar
> >
> >
> >
> >
> >
> >
> > --
> > Regards,
> > M.Iftakhul Anwar
> >
> >
> >
> > _______________________________________________
> > dev mailing list
> > dev at openstreetmap.org
> > http://lists.openstreetmap.org/listinfo/dev
>
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
>
>
>
>
> --
> Regards,
> M.Iftakhul Anwar
>
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20120104/20f7137e/attachment-0001.html>
More information about the dev
mailing list