Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김동훈
/
OpenSource_Project
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Donghoon Kim
2018-12-14 04:10:04 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b82ae0a9395933c4b010a9ea744fec738924b3ea
b82ae0a9
1 parent
461668a9
Change index.html
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
12 deletions
public/js/getPlaceList.js → api/getPlaceList.js
public/Rooms.html
public/index.html
public/js
/getPlaceList.js
→
api
/getPlaceList.js
View file @
b82ae0a
...
...
@@ -2,14 +2,6 @@ var map;
var
pos
;
var
infowindow
;
var
service
;
var
result_food
=
[];
var
result_entertainment
=
[];
var
result_room
=
[];
export
{
pos
as
posiiton
};
export
{
result_food
as
foodList
};
export
{
result_entertainment
as
entList
};
export
{
result_room
as
roomList
};
function
initMap
()
{
map
=
new
google
.
maps
.
Map
(
document
.
getElementById
(
'map'
),
{
...
...
@@ -62,7 +54,7 @@ function searchPlace(str, placeType) {
service
.
nearbySearch
({
location
:
pos
,
radius
:
500
,
type
:
[
'meal_takeaway'
]
type
:
[
str
.
toString
()
]
},
callback_foods
);
break
;
case
'entertainment'
:
...
...
@@ -76,7 +68,7 @@ function searchPlace(str, placeType) {
service
.
nearbySearch
({
location
:
pos
,
radius
:
500
,
type
:
[
'lodging'
]
type
:
[
str
.
toString
()
]
},
callback_rooms
);
break
;
default
:
...
...
public/Rooms.html
View file @
b82ae0a
...
...
@@ -9,7 +9,7 @@
<meta
name=
"description"
content=
""
>
<meta
name=
"author"
content=
""
>
<title>
저기어때
</title>
<title>
뭐라도해
</title>
<!-- Bootstrap core CSS-->
<link
href=
"vendor/bootstrap/css/bootstrap.min.css"
rel=
"stylesheet"
>
...
...
public/index.html
View file @
b82ae0a
...
...
@@ -95,7 +95,14 @@
</ul>
<div
id=
"content-wrapper"
>
<script
type=
"text/javascript"
src=
"js/getPlaceList.js"
></script>
<script
type=
'text/javascript'
>
var
result_food
=
[];
var
result_entertainment
=
[];
var
result_room
=
[];
var
queryString
=
"?para1="
+
result_food
+
"¶2="
+
result_entertainment
+
"¶3="
+
result_room
;
window
.
location
.
href
=
"Foods.html"
+
queryString
;
</script>
<script
type=
"text/javascript"
src=
"../api/getPlaceList.js"
></script>
<div
id=
"map"
></div>
<script
src=
"https://maps.googleapis.com/maps/api/js?key=AIzaSyDg4CkUEEt_96n1ork1nL5t4E_SpdKrgMI&libraries=places&callback=initMap"
async
defer
></script>
<!-- Sticky Footer -->
...
...
Please
register
or
login
to post a comment