0

I am pretty new with this so please bear with me.

I am able to extract GeoJSON data from OSM and Load it into MongoDB. I am able to run queries to get the data based on Radius.

The data looks somewhat like

{ "type": "Feature", "properties": { "osm_id": "112951028", "name": "Turtle Cay Marina", "other_tags": "\"amenity\"=>\"wifihotspot\"" }, "geometry": { "type": "Point", "co
       ordinates": [ -79.4304264, 9.5912818 ] } },
    98 { "type": "Feature", "properties": { "osm_id": "112960131", "name": "Turtle Cay Marina", "other_tags": "\"access\"=>\"customers\",\"amenity\"=>\"toilets\",\"female\"=>\"ye
       s\",\"male\"=>\"yes\"" }, "geometry": { "type": "Point", "coordinates": [ -79.4389014, 9.6026481 ] } },
    99 { "type": "Feature", "properties": { "osm_id": "112964824", "name": "Turtle Cay Marina", "other_tags": "\"amenity\"=>\"wifihotspot\"" }, "geometry": { "type": "Point", "co
       ordinates": [ -79.4104663, 9.5834617 ] } },
   100 { "type": "Feature", "properties": { "osm_id": "112966129", "name": "Turtle Cay Marina", "other_tags": "\"amenity\"=>\"wifihotspot\"" }, "geometry": { "type": "Point", "co
       ordinates": [ -79.3933365, 9.5820916 ] } },
   101 { "type": "Feature", "properties": { "osm_id": "112971532", "name": "Turtle Cay Marina", "other_tags": "\"amenity\"=>\"wifihotspot\"" }, "geometry": { "type": "Point", "co
       ordinates": [ -79.3959364, 9.5821017 ] } },
   102 { "type": "Feature", "properties": { "osm_id": "112983703", "name": "Turtle Cay Marina", "other_tags": "\"amenity\"=>\"wifihotspot\"" }, "geometry": { "type": "Point", "co
       ordinates": [ -79.4303876, 9.5917491 ] } },
   103 { "type": "Feature", "properties": { "osm_id": "138323737", "name": "Tolounge Beach", "other_tags": "\"leisure\"=>\"beach_resort\"" }, "geometry": { "type": "Point", "coor
       dinates": [ -61.0447712, 13.9442573 ] } },
   104 { "type": "Feature", "properties": { "osm_id": "145105277", "name": "Fort Bennett", "other_tags": "\"historic\"=>\"ruins\"" }, "geometry": { "type": "Point", "coordinates"
       : [ -60.7857196, 11.2073968 ] } },
   105 { "type": "Feature", "properties": { "osm_id": "151003165", "other_tags": "\"amenity\"=>\"parking\"" }, "geometry": { "type": "Point", "coordinates": [ -60.7952783, 11.195
       0521 ] } }

So now my question is say for a POI location I want to get the details like an Image some Description etc , to show as cards for example. Where would I have to look for that data? I can see there is a osm_id , is that usefull to get additional data for the POI?

If not any pointers to how I should proceed?

The data has been downloaded from http://download.geofabrik.de/

Some kind of Rich data Like below(Extracted from anoter Travel API):

   "places": [
      {
        "id": "poi:11878",
        "level": "poi",
        "rating": 7.2984454676515,
        "rating_local": 2.927300876913066,
        "quadkey": "032010110132021303212",
        "location": {
          "lat": 40.757951,
          "lng": -73.9856027
        },
        "bounding_box": null,
        "name": "Times Square",
        "name_suffix": "New York City, USA",
        "original_name": "Times Square",
        "url": "https://go.sygic.com/travel/place?id=poi:11878",
        "duration": 1800,
        "marker": "other:square",
        "categories": [
          "sightseeing"
        ],
        "parent_ids": [
          "poi:32280039",
          "poi:28010161",
          "region:1981637",
          "poi:28043160",
          "region:46071",
          "city:186",
          "region:106",
          "country:43",
          "continent:6"
        ],
        "perex": "Times Square (nicknamed “The Crossroads of the World”) is the best known square in New York City and also its beating heart.",
        "customer_rating": null,
        "star_rating": null,
        "star_rating_unofficial": null,
        "thumbnail_url": "https://media-cdn.sygictraveldata.com/media/poi:11878"
      },
      {
        "id": "poi:11877",
        "level": "poi",
        "rating": 5.4349773647428,
        "rating_local": 2.3696336415138,
        "quadkey": "032010110132030210220",
        "location": {
          "lat": 40.7589046,
          "lng": -73.9790427
        },
        "bounding_box": {
          "south": 40.7572839,
          "west": -73.9813411,
          "north": 40.7605248,
          "east": -73.9767441
        },
  • try using shapefiles from geofabrik. they do have additional informaton with it. – Ahsan Mukhtar Feb 20 at 6:50
  • Hello any docuemnt pointers how to use shapefiles – Sourav Chatterjee Feb 20 at 7:10
  • You can get that shapefile, and convert shapefile into geojson with all the attributes and import new geojson into mongodb. – Ahsan Mukhtar Feb 20 at 7:29
  • You already have all information about your objects. See for example node 112960131 in OSM which has the same tags as in your output. Which additional information do you expect? – scai Feb 20 at 7:42
  • 1
    Thanks for all the help, I had missed the wikidata ids in the GeoJSON file. This combined with dump from wikidata should get me started for now! – Sourav Chatterjee Feb 20 at 17:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.