0

我一直在使用 google marker api 遇到一个奇怪的问题,我正在从数据库中获取地址,很少有地址不能循环工作。这是一个例子,http://admissiontimes.com/universityDb/welcome/universityProfile/Delhi_Institute_of_Pharmaceutical_Sciences_&_Research/557

此页面清楚地显示了地址的标记,但http://admissiontimes.com/universityDb/welcome/universityIn/India-Delhiuniversity/Delhi页面有问题,它显示特定位置的地址。但是如果你会看到带有萤火虫的控制台(因为我已经记录了未显示的地址),控制台中的第一个地址与第一个链接完全相同,但不显示,

可能是什么问题?

请帮忙

谢谢你

4

1 回答 1

0

My hunch is you are going over the geocoder query limit (too many requests in a short time frame).

The workaround I have seen is to use setTimeout to delay successive requests.

Even better is to separately use the geocoder only once for each location (convert the human readable address to latitude and longitude coordinates), and store the LatLng result in your database, rather than use the geocoder every time your map webpage loads.

于 2012-08-05T16:39:04.103 回答