[here-api]REST API to find all streets that cross a line - rest

I have a line defined by the locations of its 2 ends. Is there a Here REST API call that retrieves all the streets/roads that cross this line?
Thanks.

Related

Retrive all districts based on city name from REST query

I've searched for solution for that problem on here-api documentation but I can't really find it out ! I'm starting doubt if this even possible.
Ok so basicly what i need to know for now:
1. Is this even possible on this platform ?
2. Using exactly which 'module' (eg. PLATFORM DATA EXTENSION,BATCH GEOCODER)
There is no straight solution to get all districts in a city since district concept varies from one place to another(country-specific). Still you can try one of the below options:
administrative-areas-buildings category in places api
city-town-village category in places api
retrieveAreas mode in geocoder api (apply bbox or increase the radius of prox parameter and see if it works for your location)
Search Text in geocoder can also be used if you are search for districts which match a regex
You can check if the above 1) and 2) are applicable to your location using https://places.demo.api.here.com/places/v1/categories/places?at=41.8369%2C-87.684&app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

How can I search for elements within a polygon with Overpass?

I am new to Overpass API and GIS in general.
Is there an easy way to export all buildings in a specific region using coordinates to specify the polygon? I couldn't find a solution using the wiki and google so far.
I have large sets of coordinates which are determining some medium-voltage grids.
Or is there another tool I could use?
I want to use the polygon- coordinates of the exported buildings in matlab.
Thanks for your help!
Overpass API provides the (poly: ) filter to query objects inside a given polygon. See the documentation in the wiki for details.
Buildings in a given polygon can be queried as follows:
way[building](poly:"50.7 7.1 50.7 7.12 50.71 7.11");
(._;>;);
out meta;
Due to a recent memory limitation, you might have to either add a [maxsize: xxx] setting:
[maxsize:2073741824];
way[building](poly:"50.7 7.1 50.7 7.12 50.71 7.11");
(._;>;);
out;
or resort to the following workaround to force another evaluation sequence:
way(poly: "50.7 7.1 50.7 7.12 50.71 7.11");
way._[building];
(._;>;);
out meta;

How to output sets in Gremlin through Orientdb REST API?

In my project, I'm sending Gremlin scripts via the REST API of Orientdb.
I'm having problem returning the values inside sets collected during the graph traversal.
I have a simple Graph setup.
User-- FollowsMovies -- > Movies
User-- FollowsActors -- > Actors
u= g.v('12:1');
following= [] as Set;
u.as('x').out('FollowsMovies').aggregate(following).back('x').out('FollowsActors').aggregate(following);
return following.toString();
however, the script returns nothing. If I ask for size of 'following', it returns 0, although it is not supposed to be empty.
I Tried the same code on the gremlin console and it worked as expected. Can anyone suggest how to correctly output elements of a set?
Thanks for you help in advance.
Try to add iterate()at the end of your query.
See: http://gremlindocs.com/#methods/pipe-iterate

Does the use of place parameter in queries using the Facebook Graph API affect the results of post searches?

I 've been trying to test the place parameter when used for searching post using the Facebook Graph API. However it does not seem to affect results !!
For example:
https://graph.facebook.com/search?q=coffee&type=post&center=44,55&distance=1000
in the previous URL results do not change when I change the values of latitude and longitude (44,55) or the radius (1000)
Am I doing something wrong ?
I think the "distance" and "center" parameters only work when you use the parameter "type=place".
e.g. The two links below return demonstrate this.
https://graph.facebook.com/search?q=coffee&type=place&center=44.270962,55.096039&distance=1000&access_token=[access_token]
https://graph.facebook.com/search?q=coffee&type=place&center=53.270962,-6.096039&distance=1000&access_token=[access_token]
Once you have all the places returned, you could then do a further search on each place for their posts that contain coffee...

Get Zipcodes List by giving my current point zipcode inside a radius

I need to find if the given zip code is within the required radius. For example, if the user has entered 20910, it should be able to determine if it's within 5 mile radius of 20814. Is there a way to do it? Google API or something? Please help.
I'm using C# as the programming language.
I think it's called the havershine formula...
Havershine Example - google it for more