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 ♦
31.9k16237548

1

Which library are you talking about?

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

Mapquest open API

(27 Aug '15, 15:38) MahoreLee

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


map.geocodeAndAddLocations('Denver CO');

permanent link

answered 27 Aug '15, 21:21

MahoreLee's gravatar image

MahoreLee
26113
accept rate: 0%

thank you!

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

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×108
×46
×28
×23
×4

question asked: 27 Aug '15, 00:41

question was seen: 1,951 times

last updated: 27 Aug '15, 22:15

powered by OSQA