Google maps api request ignores transit mode, why? [duplicate] - json

This question already has answers here:
Can't get transit directions in Japan
(3 answers)
Closed 2 years ago.
i would like to know the travel duration between two train stations by train. My request looks like this:
https://maps.googleapis.com/maps/api/directions/json?origin=komagome+station&destination=ueno+station&mode=transit&transit_mode=train&key=++your_api_key++
Unfortunately the resulting json only includes travel directions/information by walking. I'm just clueless here...
Thanks in advance for your help.

Transit directions are not supported in Japan
from the FAQ:
In which countries are transit directions available?
The Google Maps Directions Service, which includes the Directions API and Distance Matrix API, supports all the transit providers in the transit coverage list, except for those in Japan.

Related

Google-places-api - there is no country in response [duplicate]

Using the google geocode API I am unable to get administrative_level_1(state) information for location on border of India (Kashmir, Arunachal Pradesh, ...). Can anyone help me with this?
see issue 8450 in the issue tracker
from that issue:
http://en.wikipedia.org/wiki/List_of_territorial_disputes
In disputed areas, geocoding results have no country (and sometimes no administrative_area_level_1). Reverse geocoding for disputed areas returns no results (e.g. 34.0836581,74.7973681). There is work underway to make reverse geocoding work in disputed areas.

Adding multiple directions requests together Google Maps API

I'm trying to get directions for a user provided origin and destination, while showing directions to a middle location for ALL travel modes (driving, walking, bicycling, transit).
I have this coded using waypoints, but I just discovered that the Google Maps API doesn't support waypoints for public transit--as discussed in a previous question here.
I'm having difficulty finding any examples for how to go about piecing together multiple directions requests without using waypoints. Is there a way to add multiple directions to the directionsDisplay variable?
Example: Display directions from A -> B, then add directions from B -> C to the existing display.
Found my answer based on this question: Multiple travel modes to render one map using google maps API
Multiple directionsDisplays are needed, with multiple trip legs (requests) being sent to directionsService.route().

maps windows phone 8

I am trying to make an application for windows phone 8 that could track current location of user and gives a route from current location to desired destination location.
With existing maps feature (bing, Nokia maps) it is not possible to track the location areas for Karachi Pakistan by their respective names. For example, if I want to get the route from pizza hut, Karachi to dolmen mall, Karachi, it will never show a route since the areas are not marked in the map.
This problem doesn't occur for people living in the US I suppose, since I saw many tutorials where exact locations are shown by just typing in the area names in the search bar (as for Redmond and Chicago). What should we, the users of elsewhere do.... while if we see Google maps, all areas even of Karachi, Pakistan are marked.
please help.
In Bing Maps, if you have two coordinates that are on roads that are drawn on Bing Maps you can get a route between them anywhere in the world. WP8 uses just Nokia data which is only one of several data providers used by Bing Maps. You can use the Bing Maps REST services to route between any two coordinates that are on roads in the world, including Pakistan. Here is some information about the Bing Maps REST routing service:
http://msdn.microsoft.com/en-us/library/ff701705.aspx
http://msdn.microsoft.com/en-us/library/jj819168.aspx
http://msdn.microsoft.com/en-us/library/jj870778.aspx
Bing Maps are very powerful and easy to implement but unfortunately they are not supported in Pakistan. Due to restriction you are not able to find route between two geo location point or places. But Microsoft promised to give its support in Pakistan very soon as they are working on it as well.
The link given below will show you the restriction of bing maps in different regions.
http://msdn.microsoft.com/en-us/library/jj670541.aspx
I have written a blog post in which I have drawn a route between two location points but it will not work for you as I already told you.
http://dev-bingmaps.blogspot.com/
Now there is one solution in from which you can find route that is to use google maps.

google maps api terms

I'm trying to use google maps API and have a question:
google says (http://www.google.com.ua/intl/en/enterprise/mapsearth/products/mapsapi.html) that if I use google maps I have restrictions for those services:
1) geocoding service
2) directions service
3) distance matrix service
4) eleveation service
but what about simple API? I mean are there any restrictions if I use lets say only function that adds marker to a map and function that shows the place on the map where particular point is located?
Thanks. Sorry for noob question but I've read terms and conditions few times and still not sure about the answer.
The restrictions i know about:
Not more than eight waypoints per route
Limited request-rates. It will be slow enough if you request one direction in one second.
No implementation on serverside. You will have to implement the Google API on clientside.
From Google:
2,500 directions requests per day.
When the mode of transportation is driving, walking, or cycling, each directions search counts as a single request.
Searching for transit directions counts as 4 requests.
Individual requests for driving, walking, or cycling directions may contain up to 8 intermediate waypoints in the request. Waypoints can not be specified for transit requests.
Concerning simple API:
There are no restrictions. :)

Find neighbors delimitations with google maps or google api

I need to find points that define delimitations of neighbors from Chicago.
My question is: How can I find a list with latitudes/longitudes of all the points that delimit neighbors. For example:
Gold Coast from Chicago is a polygon with 6 points as seen on google map: http://maps.google.com/maps/ms?ie=UTF8&t=m&vpsrc=6&source=embed&oe=UTF8&msa=0&msid=206241844247425110008.0004b43f0262868b8037f
What is the best way to extract this points so I can draw poly-lines over google map with google API for specific neighbors?
Edited:
So with addresses, which you already have, you can create a Maps API site:
http://code.google.com/apis/maps/
and use the Geocoding API to get the latitude and longitude of each of the addresses.
Added: Seems based on your comment that you're looking for neighborhood boundary data. Google Maps doesn't provide that data. There are different venders that do, one I have heard of is the Zillow Neighborhood API. I have never used it so I don't know much about it.