place search api for nokia maps in http format? - javascript

I need an api for nokia maps place search with query and place term.
The API should be in http(url) format.
like this:
http://api.nokia.com/query=hotels/location=lat,long

It looks like you may be after the RESTful Places API. The latest documentation can be found here: http://developer.here.net/places
If you are after hotels, you could base your query on the example here:
http://developer.here.net/apiexplorer/examples/api-for-rest/places-search/places-search-by-category.html
The following URL will return a set of hotels in central Berlin (around 52.51N,13.4E)
http://demo.places.nlp.nokia.com/places/v1/discover/explore?cat=hotel&at=52.51,13.4&app_id=_peU-uCkp-j8ovkzFGNU&app_code=gBoUkAMoxoqIWfxWA5DuMQ&accept=application/json

See this link http://demo.places.nlp.nokia.com/places/v1/discover/explore?at=19.1273%2C72.8515&tf=plain&size=10&app_id=7vivA7jIFlZh9WX_B0cd&app_code=6ptUAobtF0RFJ9CkfX7geg&Geolocation=geo%3A19.0254%2C72.8401%3Bcgen%3Dmap . You can customize your search on left panel

Related

Passing waypoint info to comgooglemaps (Google Maps URL Scheme)

I am in the process of creating an app using the Google Maps api to generate random biking routes (http://sutsurikeru.com/maps) and it works fine so far, but the issue I am having is passing the generated route, including the following info to the google maps app:
Start Destination
Way-point (randomly generated using https://gis.stackexchange.com/questions/25877/how-to-generate-random-locations-nearby-my-location)
End Destination (same as the start destination)
Once I've got all the lat/long information I pass it to a button that is created when the route is generated so that it can pass the route to the Google Maps App, but I am unsure how to pass the way-point as there is no mention of it in the docs - https://developers.google.com/maps/documentation/ios-sdk/urlscheme
$('#goRide').append('<a class="goridebtn" href="comgooglemaps://?saddr=' + address + '&daddr=' + address + '&directionsmode=bicycling">Go ride</a>');
I guess my question is then, can I include the way-point information when I am passing it to the Google Maps App?
i couldn't find the answer for that too , so i ended using:
"comgooglemapsurl" instead..
this way you can pass a full url (same onese used in the browser)
the format will be something like this:
comgooglemapsurl://www.google.com/maps/dir/STARTING_POINT/WAYPOINT_1/WAYPOINT_2/WAYPOINT_3/WAYPOINT_4/DESTINATION
you can add as many points as u wish
comgooglemapsurl://www.google.com/maps/dir/24.848607,46.660478/24.748607,46.760478/24.778607,46.784478
https://developers.google.com/maps/documentation/urls/ios-urlscheme
Looks like you can add waypoints using the +to: variable inside the daddr text. The following example shows this in use:
comgooglemapsurl://?saddr=55.852866,-4.323120&daddr=56.019015,-3.372803+to:55.972934,-3.279419+to:55.932952,-3.284912+to:56.022085,-3.565063

Not able to fetch Latitude and longitude from eventbrite api

This is a query string to fetch all popular events within a radius of a specified location.
https://www.eventbriteapi.com/v3/events/search/?popular=off&location.address="+area+"&location.within="+radius+"&token=E5DRAICK4272QQQIBDR5
But when I query Eventbrite api I only get venue_id , How to fetch lat and long for an event from eventbrite api ?
Please try venue param in your fetching URL to eventBrite API, like this:
$search_url?token=$token&q=&date_created.keyword=today&page=$repeat&sort_by=$date&expand=venue
It solved my issue and brought lat long along with proper location of event.
&expand=venue is still working perfectly!!! The official documentation says the venue is deprecated, but anyway you can use it.

Google Maps API Autocomplete doesn't return same result as a Google Maps Search

No result is returned when using the Google Maps API v3. Autocomplete, however when doing a Google Maps Search for the same address will return a result.
Why is this and how can this be resolved?
Example.
Works:
Google maps, finds the address:
https://www.google.co.uk/maps?q=1+Oakland+Terrace,+New+Edlington,+Doncaster+DN12+1AA
Fails:
Step 1. Use the example of the Maps API Autocomplete. https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform
Step 2. Start typing or paste in the address:
1 Oakland Terrace, New Edlington, Doncaster DN12 1AA.
No address is found.
The Google Places API often returns results similar to maps.google.com, but they're not the exact same. I'm unable to reproduce any suggestions for the start of this address using maps.google.com, which matches the experience you're seeing in the Autocomplete API.
That said, this specific address appears to work correctly using the Geocoding API and the Place Text Search API. The Places API has information for that address, it's just not autocompleting. I would recommend designing your application so that if you have a full-looking address and an autocomplete request fails you fall back to a regular Places API text search or geocoding call.

Google Directions - different behaviour on different ISPs

we are using google maps service to fetch directions data between two points in dragdir format:
http://maps.google.com/maps?f=d&hl=en&saddr=43.2602841679131,16.6526985168457&daddr=43.5602841679131,16.7526985168457&ie=UTF8&0&om=0&output=dragdir
Issue we uncounted, manifests in a way that direction path for user connected to internet via particular ISP (ieg. t-com) is drawn or scaled or rotated or translated or with any combination of it.
Also, we use same pattern in android native apps and we had never bumped in such problems.
Do you maybe have any suggestion or good practice how avoid described problems?
Here is sample of dragdir json object returned from maps api:
{tooltipHtml:"
(151\x26#160;km / 1 hour 51 mins)",polylines:[{id:"route0",points:"e}ruGis|eBsGdPiBxJ{Ab
h#aAdKoDjNeDlHuC~Di#bBsAnPqAlGwDpGmDbCkGrO
aCzJ.. more scrambled data here ..?B",numLevels:4,zoomFactor:16}]}
Thank you!
I believe google is making region specific changes to the output.
I would suggest you to direct a call to your server and then call the google service from your server to get an uniform result.
See if you can also mention region in the google service calll itself.
If your page is being accessed from different parts of the world, it can very well cause the directions to be different. From the Region Biasing for Directions section of the Developer's Guide:
The Google Maps API Directions Service returns address results
influenced by the domain (region or country) from which you loaded the
JavaScript bootstrap. (Since most users load http://maps.google.com/
this sets an implicit domain to the United States.) If you load the
bootstrap from a different supported domain, you will get results
influenced by that domain. For example, searches for "San Francisco"
may return different results from applications loading
http://maps.google.com/ (the United States) than one loading
http://maps.google.es/ (Spain).
You can force Region Biasing by adding the following to your request URL parameters:
[after sensor=false, etc.] &region=US
This will set the Directions service to return results biased to a particular region (the USA in this case).

Pull Foursquare City and State Location

I have a landing page site and I would like to pull my latest checkin location.
EX:
Currently in San Francisco, CA
What is the best way to do this? Thanks!
I would use the Foursquare provided RSS Feed and use jQuery to parse the feed. Foursquare provides the feeds: https://foursquare.com/feeds/ and can use jQuery.ajax() http://api.jquery.com/jQuery.ajax/

Categories