This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

[closed] Plot address instead of lat and lng

0

Currently I convert the address to lat and lng in the backend (php) then plot the point with the code below.

var point = new MQA.Poi({ lat: result[i]['Lat'], lng: result[i]['Lng'] });
map.addShape(point);

How would I be able to plot the point with just an address rather than converting it myself.

asked 27 Aug '15, 00:41

MahoreLee's gravatar image

MahoreLee
26113
accept rate: 0%

closed 27 Aug '15, 22:13

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

1

Which library are you talking about?

(27 Aug '15, 07:36) scai ♦

Mapquest open API

(27 Aug '15, 15:38) MahoreLee
3
(27 Aug '15, 16:54) stephan75

Didn't know which one to post the question on. So far no answers.

(27 Aug '15, 21:19) MahoreLee

@MahoreLee: please choose only one next time, that saves resources.

(27 Aug '15, 22:14) aseerel4c26 ♦

The question has been closed for the following reason ““I finally found the answer” at the forum entry” by aseerel4c26 27 Aug ‘15, 22:13


One Answer:

1

map.geocodeAndAddLocations('Denver CO');

answered 27 Aug '15, 21:21

MahoreLee's gravatar image

MahoreLee
26113
accept rate: 0%

thank you!

(27 Aug '15, 22:15) aseerel4c26 ♦

Source code available on GitHub .