Get closest "link_id" to coordinate - here-api

I already contacted Here about this but they suggested I asked here.
Does someone have a way to get the closest "link_id" to a coordinate through Here API?

You can get the link ID Data from the Fleet Telematics - Advanced Dataset API
https://developer.here.com/documentation/advanced-datasets-api/dev_guide/topics/examples.html
You can follow this example below to get an idea.
https://tcs.ext.here.com/examples/v3/pde_street_details

Related

HERE API - how to extract all the information about road based on GPS coordinates

I need to get as much info as possible based on GPS - road type, interaction or not, etc.
What is the right way to get it?
I've seen this question and answer
HERE maps - getting road type based on gps coordinates
but the provided link doesn't work anymore.
It looks like you want to migrate to the Routing API, specifically the getRoute call, https://developer.here.com/documentation/routing/dev_guide/topics/resource-get-route.html#resource-get-route. In the details here you can see the attribute, linkAttributes, which lets you return the information you are looking for I believe. Let me know if not.
It looks like the right way to do it to use the next POST request:
https://fleet.api.here.com/2/calculateroute.json?app_id=APP_ID&app_code=APP_CODE&routeMatch=1&mode=car&attributes=LINK_ATTRIBUTE_FCn%28%2A%29
Example of the body:
LATITUDE,LONGITUDE
37.401996,-122.041338
37.402948,-122.045580
37.403690,-122.049024

How to get place information using Google Knowledge Graph using Latitude and Longitude ?

I want business description using google API or wikidata API.
As shown in above image I want to access description (which is highlighted in red circle.) and store it into application database.
What I tried till now, I used google place API to get the place information, using that I am able to get information like review,rating,opening hours. But I am not able to get that information which I have mention in above image. But I do not know how to get that information using Wikidata api or Google Knowledge Graph api.
Can any one suggest me that how can I use that API to get that information.
Any help would be highly appreciated !
Thanks,
I'd also be keen to know if this is possible. For example, with a bounding box. 4 coordinates, might it be possible for Google Knowledge or another API to give me a summing up of the place.
For example: bbox=4.721375,52.290843,5.070190,52.399905
Might return information and history on the city of Amsterdam. Like when you type into Google Search "Amsterdam".
Just a thought. I have previously accomplished this with a very manual combination of Overpass API (related to OSM) and Freebase.
I just found this: Find a place description in Freebase using latitude and longitude?
So, it can be done. And it is already documented.

Google has started highlighting search areas in Pink color. Is this feature available in Google Maps API 3?

Since Jan 2012, Google has started highlighting search areas in pick color. See the details here:
http://googlesystem.blogspot.in/2012/01/highlight-areas-in-google-maps.html
Does anyone know if this can be programmatically done using google maps API 3? I would want to show my cities in the map highlighted as shown in the link above.
I have already tried the Geocode API where I search for a city. That API only gives me the lat and long information. It does not help me in plotting the city boundaries.
No. It's not available in the API.
(It may be available in the future. Features of Google Maps do migrate into the API, but Google don't make announcements in advance and no-one has a crystal ball.)
You would need to find the city boundaries and draw the line yourself. Boundary data is almost certainly public-domain for the US. Other jurisdictions may not be so forthcoming.
Although a very old post my answer might help somebody out there as am landing on this post every time I query for bounding box:
Yes we can get the bounding box coordinates that google is using to highlight a region using Googles geocoding service. check for the response of the API call in the below sample from Google.
https://developers.google.com/maps/documentation/javascript/examples/geocoding-simple?refresh=1

Obtain latitude and longitude from address without the use of Google API

I am currently working on a large population-based database where it is required that I compute the distance between two addresses for each individual. My first train of thought was to obtain the latitude and longitude representing each address and then compute the distance. I used Google API's to obtain the latitude and longitude for these addresses via various packages in R (e.g. dismo). However Google has a restriction of 2500 requests in a 24hr period. I have about 300,000 addresses and by running 2,500/day, I will not be able to meet the deadline.
Would anyone have suggestions regarding other API's I could use to obtain the latitude and longitude using R?
Thank you.
I would recommend that you try the RDSTK package which interfaces with the Data Science Toolkit. It is available on github.
EDIT. To compute the Road Distance, I would recommend the Mapquest Directions API, which appears to have no preset limits as per this link. Let me know how it goes.
What you are doing is called "geocoding". Knowing that will greatly improve your ability to search for more info :) You may have already known that since you tagged the question properly, but I wanted to make sure.
Here's a really good previous Stack Overflow question, albeit not R specific.
More options:
The geonames package to retrieve information from the geonames service.
The osmar package to use the API of openstreetmap.
Besides, the gdistance package is useful for distance calculations on geographical grids.

Google Maps API search based on geolocation

I have the same question posted here: How do I search using the Google Maps API?. They mentioned the answer helped, but I still couldn't figure it out. Does anyone have an example of it working or can post the code?
I can get it to work seperately, find your geolocation and also search for restaurants (by typing in coordinates); but I can't seem to combine it into one map that finds your geolocation and then searches for nearest items based on your geolocation. Any ideas on how to make that happen on one map? Or I'd settle for 2 pages, if someone knows how to pass the variables of your geolocation to another page/map to search for restaurants.

Resources